﻿#region Using directives

using System;

#endregion

namespace NiSis.Entities
{	
	///<summary>
	/// An object representation of the 'Ssh_Societa_Storico_Chain' table. [No description found the database]	
	///</summary>
	/// <remarks>
	/// This file is generated once and will never be overwritten.
	/// </remarks>	
	[Serializable]
	[CLSCompliant(true)]
	public partial class SshSocietaStoricoChain : SshSocietaStoricoChainBase
	{		
		#region Constructors

		///<summary>
		/// Creates a new <see cref="SshSocietaStoricoChain"/> instance.
		///</summary>
		public SshSocietaStoricoChain():base(){}	
		
		#endregion

        #region custom methods
        /// <summary>
        /// Description of the actual societa object
        /// </summary>
        /// 
        string mFullDescription=string.Empty;
        public string FullDescription
        {
            get 
            {
                if (mFullDescription == string.Empty)
                    return this.IdTipologiaSocieta == 1 ? string.Format("{0} ({1})", this.RagioneSociale, "trader") :
                        string.Format("{0} ({1})", this.RagioneSociale, "shipper");
                return mFullDescription; 
            }
            set { mFullDescription = value; }
        }
#endregion


    }
}
